<!DOCTYPE html>
<html>
    {eval global $starttime,$querynum;$mtime = explode(' ', microtime());$runtime=number_format($mtime[1] + $mtime[0] - $starttime,6); $setting=$this->setting;$user=$this->user;$headernavlist=$this->nav;$regular=$this->regular;}
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset={TIPASK_CHARSET}"/>
        <!--{if isset($seo_title)}-->
        <title>{$seo_title}</title>
        <!--{else}-->
        <title><!--{if $navtitle}-->{$navtitle} - <!--{/if}-->{$setting['site_name']}</title>
        <!--{/if}-->
        <!--{if isset($seo_description)}-->
        <meta name="description" content="{$seo_description}" />
        <!--{else}-->
        <meta name="description" content="{$setting['site_name']}" />
        <!--{/if}-->
        <meta name="keywords" content="{$seo_keywords}" />
        <meta name="generator" content="Tipask {TIPASK_VERSION} {TIPASK_RELEASE}" />
        <meta name="author" content="Tipask Team" />
        <meta name="copyright" content="2013 tipask.com" />
        <meta name="robots" content="index, follow">
        <meta name="googlebot" content="index, follow" />
        <link rel="stylesheet" type="text/css" href="{SITE_URL}css/default/main.css" />
        <link rel="stylesheet" type="text/css" href="{SITE_URL}js/jquery-ui/jquery-ui.css" />
        <script type="text/javascript" src="{SITE_URL}js/jquery.js"></script>
        <script type="text/javascript">
            g_site_url = "{SITE_URL}";
            g_prefix = "{$setting['seo_prefix']}";
            g_suffix = "{$setting['seo_suffix']}";
            g_seo_on = "{$setting['seo_on']}";
        </script>
    </head>
    <body>
        <div class="js-fixed">
            <div class="top-bar">
                <div class="wrapper clearfix">
                    <ul class="tnav">
                        <!--{loop $headernavlist $nav}-->
                        <!--{if $nav['type']==2 && $nav['available']}-->
                        <li>
                            <a title="{$nav['title']}" href="{$nav['url']}"  {if $nav['target']}target="_blank"{/if}><span text="hd-home" >{$nav['name']}</span></a>
                        </li>
                        <!--{/if}-->
                        <!--{/loop}-->
                    </ul>
                    <div class="tuser-top-inner">
                        <!--{if 0!=$user['uid']}-->
                        <ul class="tuser-login">
                            <li class="tuser-bar"><a href="{url user/default}">{$user['username']}</a></li>
                            <li id="myqa" class="tuser_menu">
                                <span class="ismore"><a target="_blank" href="{url user/ask/2}">我的问答</a><i class="ar-ico"></i></span>
                                <div class="tuser-more-list">
                                    <a target="_blank" href="{url user/ask/2}">我的提问</a> 
                                    <a target="_blank" href="{url user/ask/1}">我的回答</a> 
                                </div>
                            </li>
                            <li id="mymessage" class="tuser_menu">
                                <!-- 如果没有短消息的话 msg-ico 后面有个 msg-null -->   
                                <!--{if ($user['msg_system']+$user['msg_personal'])>0}-->
                                <span class="ismore"><a target="_self" href="{url message/personal}" class="msg-ico">收件箱</a><i class="ar-ico"></i></span>
                                <!--{else}-->
                                <span class="ismore"><a target="_self" href="{url message/personal}" class="msg-ico msg-null">收件箱</a><i class="ar-ico"></i></span>
                                <!--{/if}-->
                                <div class="tuser-more-list tuser_msg">
                                    <a onclick="msgClear();" target="_blank" href="{url message/personal}">私人消息<!--{if $user['msg_personal']>0}--><span class="msg-num">{$user['msg_personal']}</span><!--{/if}--></a>
                                    <a onclick="msgClear();" target="_blank" href="{url message/system}">系统消息<!--{if $user['msg_system']>0}--><span class="msg-num">{$user['msg_system']}</span><!--{/if}--></a>
                                </div>
                            </li>
                            <li class="tuser_menu">
                                <span class="ismore"><a target="_blank" href="http://my.zol.com.cn/sdf_sky/settings/">账号</a><i class="ar-ico"></i></span>
                                <div class="tuser-more-list">
                                    <!--{if $user['groupid']<=3}-->
                                    <a href="{SITE_URL}index.php?admin_main">系统设置</a>
                                    <!--{/if}--> 
                                    <a target="_blank" href="{url user/profile}">修改资料</a>
                                    <a href="{url user/logout}" class="tuser_logout">退出</a>
                                </div>
                            </li>
                        </ul>
                        <!--{else}-->
                        <ul class="tuser-login">
                            <li class="tuser-bar">
                                <span>您好，欢迎来到{$setting['site_name']}!&nbsp;&nbsp;[<a  href="{url user/login}">请登录</a>]</span>|<span>[<a href="{url user/register}">免费注册</a>]</span>
                                <p style="display:none;" class="pub-login-tips">登录体验更流畅的互动沟通 <i></i><span class="top-close"></span></p>
                            </li>
                        </ul>
                        <!--{/if}-->
                    </div>
                </div>
            </div>
            <div class="search_mod">
                <div class="header clearfix">
                    <div class="logo">
                        <a href="{SITE_URL}">{$setting['site_name']}</a>
                    </div>            
                    <div class="searchbox">
                        <form name="searchform"  action="{url question/search}" method="post">
                            <span class="round"><input autocomplete="off" maxlength="100"  class="js-sh-ipt input_key" tabindex="1" name="word" id="search-kw" value="{$word}"></span>
                            <span class="button"><input type="button" id="search_btn" class="js-search-bt s_btn" value="搜索答案" /></span>
                            <span class="button"><input type="button" id="ask_btn" class="js-ask-bt s_btn" value="我要提问" /></span>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div style="height:92px;"></div>
        <div id="navbox">
            <div class="main-nav clearfix">
                <ul class="navlist">
                    <!--{loop $headernavlist $nav}-->
                    <!--{if $nav['type']==1 && $nav['available']}-->
                    <li  <!--{if strstr($nav['url'],$regular)}-->class="on"<!--{/if}-->>
                        <a title="{$nav['title']}" href="{url $nav['url']}"  {if $nav['target']}target="_blank"{/if}><span text="hd-home" >{$nav['name']}</span></a>
                    </li>
                    <!--{/if}-->
                    <!--{/loop}-->
                </ul>
                <p class="total">&nbsp;</p>
            </div>
        </div>


